package com.imooc.spark

import org.apache.spark.sql.SparkSession

object SparkSessionApp {
  def main(args: Array[String]): Unit = {
    val spark = SparkSession.builder()
      .appName("SparkSessionApp")
      .master("local[2]").getOrCreate()

    val people = spark.read.json("D:\\development\\spark-2.4.4-bin-hadoop2.6\\examples\\src\\main\\resources\\people.json")
    people.show()

    spark.stop()
  }

}
